//
//  GameplayManager.m
//  GLSprite
//
//  Created by Daniel Polak on 7/19/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "GameplayManager.h"
#import "Mind.h"

@implementation GameplayManager

@synthesize m_pMind;
@synthesize m_pCollision;
@synthesize m_pHead;

static GameplayManager* instance = nil;

+ (GameplayManager *)gameplayManager { 
	if ( instance == nil ) { 
		instance = [[self alloc] init];
	} 
	return instance;
}

- (void)UpdateGame {
	//Check the input
	[self CheckInput];
	
	//Check objects and update them
	[self UpdateObjects];
	
	//check collision
		//particle collision
		//tip of stream to world objects
			//resolve based on what hit
	[self CheckCollision];
	
	//Update the parralax
	[self UpdateParralax];
	
	
}

- (void)Setup {
	m_pMind = [Mind mind];
	m_pCollision = [CollisionManager collisionManager];
}

- (void)CheckInput {
	//If there is a tap
	if(m_pMind.tap)
	{
		
	}
}

- (void)CheckCollision {
	
}

- (void)UpdateParralax {
	
}

- (void)UpdateObjects {
	
}


@end
